/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nys.conci.cliente.entidad;

import java.io.Serializable;
import javax.persistence.*;

/**
 *
 * @author Oak
 */
@Entity
@Table(name = "cliente", schema = "public")
public class Cliente implements Serializable {

    @Id    
    private String identificacion;
    private Integer id_estado;    
    
    //<<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    //<<<>>>><<<>>>><<<>>>><<<>>>>  CONSTRUCTOR  <<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    //<<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    public Cliente() {
    }

    public Cliente(Integer id_estado) {
        this.id_estado = id_estado;
    }

    //<<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    //<<<>>>><<<>>>><<<>>>><<<>>>>  GETS & SETS  <<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    //<<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>    

    /**
     * @return the identificacion
     */
    public String getIdentificacion() {
        return identificacion;
    }

    /**
     * @param identificacion the identificacion to set
     */
    public void setIdentificacion(String identificacion) {
        this.identificacion = identificacion;
    }
    

    /**
     * @return the id_estado
     */
    public Integer getId_estado() {
        return id_estado;
    }

    /**
     * @param id_estado the id_estado to set
     */
    public void setId_estado(Integer id_estado) {
        this.id_estado = id_estado;
    }    

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Cliente other = (Cliente) obj;
        if ((this.identificacion == null) ? (other.identificacion != null) : !this.identificacion.equals(other.identificacion)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 71 * hash + (this.identificacion != null ? this.identificacion.hashCode() : 0);
        return hash;
    }
}
